home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: alt.msdos.programmer,comp.lang.c,comp.lang.pascal.misc
- Subject: Re: typecasting preferences
- Date: Wed, 17 Apr 96 23:58:41 GMT
- Organization: none
- Message-ID: <829785521snz@genesis.demon.co.uk>
- References: <4l020g$i9j@srvr1.engin.umich.edu>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4l020g$i9j@srvr1.engin.umich.edu>
- hasdi@news-server.engin.umich.edu "HASDI RODZMANN HASHIM" writes:
-
- >Hi guys! I think my earlier post got lost so here it is again.... This is
- >for a student compiler project of mine....
-
- This is entirely down to what your compiler actually compiles (other
- than students!). If it is C use C cases, if it is Pascal use Pascal
- conversions. If it is something else use whatever fits the type system
- of the language. Pascal conversions wouldn't work at all well with complex
- C type declarations and may not even produce an unambiguous grammar.
-
- >If you have a choice, do you want the parethesis pair over the caster
- >(C-style) or over the castee (Pascal-style)? eg...
-
- I would use whatever is appropriate for the rest of the language.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-